<!--
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>typeList</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" crossorigin="anonymous">
</head>
<body class="container">
<br/>
<h1>文章类型列表 <a href="/" th:href="@{/}" class="btn btn-info">返回</a></h1>
<br/><br/>
        <form action="#" th:action="@{/articletype/pageByName}" method="get">
			<input type="hidden" name="pageIndex" value="0"/>
            文章类型名称：<input type="text" name="type" class="form-control mb-2 col-4" />
            <button type="submit" class="btn btn-info mb-2 col-2">查询</button>
        </form>
<div class="row mb-2">
    <div class="col-sm-3 control-label" >
        <a href="/toAdd" th:href="@{/articletype/toAdd}" class="btn btn-info">新增</a>
    </div>  
    <div class="col-sm-5 " > </div>
    <div class="col-sm-4 " >  
        <a href="/articletype/page?pageIndex=0" th:href="@{/articletype/page?pageIndex=0}" class="btn btn-info">首页</a>
        <a href="/articletype/page?pageIndex=0" th:href="@{/articletype/page(pageIndex=${pre})}" class="btn btn-info">上页</a>
        <a href="/articletype/page?pageIndex=0" th:href="@{/articletype/page(pageIndex=${next})}" class="btn btn-info">下页</a>
        <a href="/articletype/page?pageIndex=0" th:href="@{/articletype/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info">末页</a>
    </div>   
</div>
<div class="with:80%">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>编号</th>
            <th>文章类型</th>
            <th>创建时间</th>
            <th>修改时间</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
        </thead>
        <tbody>
        <tr  th:each="articletype,articletypeStat : ${page.getContent()}">
            <th scope="row" th:text="${page.getSize()*page.getNumber() + articletypeStat.index + 1}">1</th>
            <td th:text="${articletype.type}">neo</td>
            <td th:text="${#dates.format(articletype.createTime,'yyyy-MM-dd HH:MM')}">Otto</td>
            <td th:text="${articletype.updateTime}">6</td>
            <td><a th:href="@{/articletype/toEdit(id=${articletype.id})}">edit</a></td>
            <td><a th:href="@{/articletype/delete(id=${articletype.id})}">delete</a></td>
        </tr>
        </tbody>
    </table>
</div>
<div class="row">
    <div class="col-sm-8" > </div>
    <div class="col-sm-4" >
        <a href="/articletype/page?pageIndex=0" th:href="@{/articletype/page?pageIndex=0}" class="btn btn-info">首页</a>
        <a href="/articletype/page?pageIndex=0" th:href="@{/articletype/page(pageIndex=${page.previousOrFirstPageable().getPageNumber()})}" class="btn btn-info">上页</a>
        <a href="/articletype/page?pageIndex=0" th:href="@{/articletype/page(pageIndex=${page.nextOrLastPageable().getPageNumber()})}" class="btn btn-info">下页</a>
        <a href="/articletype/page?pageIndex=0" th:href="@{/articletype/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info">末页</a>
    </div>	
</div>

</body>
</html>-->
<!--<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>文章类型列表</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" crossorigin="anonymous">
    <style>
        body {
            background-color: #f0f2f5;
            font-family: 'Arial', sans-serif;
            color: #333;
        }
        .container {
            margin-top: 30px;
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #4a90e2;
            font-weight: bold;
        }
        .btn-info {
            background-color: #4a90e2;
            border-color: #4a90e2;
        }
        .btn-info:hover {
            background-color: #357abd;
            border-color: #357abd;
        }
        .btn-link {
            color: #4a90e2;
            text-decoration: none;
        }
        .btn-link:hover {
            text-decoration: underline;
        }
        .btn-link.text-danger {
            color: #dc3545;
        }
        .btn-link.text-danger:hover {
            color: #c82333;
        }
        .pagination-buttons a, .custom-btn {
            margin-right: 5px;
        }
        .table-responsive {
            margin-top: 20px;
            overflow-x: auto;
        }
    </style>
</head>
<body class="container">
<br/>
<div class="d-flex justify-content-between align-items-center">
    <h1>文章类型列表</h1>
    <a href="/" th:href="@{/}" class="btn btn-info custom-btn">返回</a>
</div>
<br/><br/>
<div class="mb-4">
    <form action="#" th:action="@{/articletype/pageByName}" method="get" class="d-flex flex-column flex-sm-row align-items-center">
        <input type="hidden" name="pageIndex" value="0"/>
        <div class="mb-2 mb-sm-0">
            <label for="typeInput" class="sr-only">文章类型名称</label>
            <input type="text" name="type" id="typeInput" class="form-control form-control-sm" placeholder="文章类型名称"/>
        </div>
        <button type="submit" class="btn btn-info btn-sm custom-btn">查询</button>
    </form>
</div>
<div class="d-flex justify-content-between align-items-center mb-4">
    <div>
        <a href="/toAdd" th:href="@{/articletype/toAdd}" class="btn btn-info btn-sm custom-btn">新增</a>
    </div>
    <div class="d-flex">
        <a href="#" th:href="@{/articletype/page?pageIndex=0}" class="btn btn-info btn-sm custom-btn mr-2">首页</a>
        <a href="#" th:href="@{/articletype/page(pageIndex=${pre})}" class="btn btn-info btn-sm custom-btn mr-2">上页</a>
        <a href="#" th:href="@{/articletype/page(pageIndex=${next})}" class="btn btn-info btn-sm custom-btn mr-2">下页</a>
        <a href="#" th:href="@{/articletype/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info btn-sm custom-btn">末页</a>
    </div>
</div>
<div class="table-responsive">
    <table class="table table-hover table-bordered">
        <thead class="thead-dark">
        <tr>
            <th scope="col">#</th>
            <th scope="col">文章类型</th>
            <th scope="col">创建时间</th>
            <th scope="col">修改时间</th>
            <th scope="col">编辑</th>
            <th scope="col">删除</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="articletype, articletypeStat : ${page.getContent()}">
            <th scope="row" th:text="${page.getSize() * page.getNumber() + articletypeStat.index + 1}"></th>
            <td th:text="${articletype.type}"></td>
            <td th:text="${#dates.format(articletype.createTime, 'yyyy-MM-dd HH:mm')}"></td>
            <td th:text="${#dates.format(articletype.updateTime, 'yyyy-MM-dd HH:mm')}"></td>
            <td><a th:href="@{/articletype/toEdit(id=${articletype.id})}" class="btn btn-link">编辑</a></td>
            <td><a th:href="@{/articletype/delete(id=${articletype.id})}" class="btn btn-link text-danger">删除</a></td>
        </tr>
        </tbody>
    </table>
</div>
<div class="d-flex justify-content-end mt-4 pagination-buttons">
    <a href="#" th:href="@{/articletype/page?pageIndex=0}" class="btn btn-info btn-sm custom-btn mr-2">首页</a>
    <a href="#" th:href="@{/articletype/page(pageIndex=${page.previousOrFirstPageable().getPageNumber()})}" class="btn btn-info btn-sm custom-btn mr-2">上页</a>
    <a href="#" th:href="@{/articletype/page(pageIndex=${page.nextOrLastPageable().getPageNumber()})}" class="btn btn-info btn-sm custom-btn mr-2">下页</a>
    <a href="#" th:href="@{/articletype/page(pageIndex=${page.getTotalPages() - 1})}" class="btn btn-info btn-sm custom-btn">末页</a>
</div>

</body>
</html>-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>文章类型列表</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" crossorigin="anonymous">
    <style>
        body {
            background-color: #e9ecef;
            font-family: 'Arial', sans-serif;
            color: #333;
        }
        .container {
            margin-top: 30px;
            background-color: #ffffff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #ff5733;
            font-weight: bold;
        }
        .btn-primary, .btn-secondary, .btn-info {
            transition: all 0.3s ease;
        }
        .btn-primary {
            background-color: #28a745;
            border-color: #28a745;
            color: #fff;
        }
        .btn-primary:hover {
            background-color: #218838;
            border-color: #218838;
            color: #fff;
        }
        .btn-secondary {
            background-color: #ffc107;
            border-color: #ffc107;
            color: #333;
        }
        .btn-secondary:hover {
            background-color: #e0a800;
            border-color: #e0a800;
            color: #333;
        }
        .btn-info {
            background-color: #007bff;
            border-color: #007bff;
            color: #fff;
        }
        .btn-info:hover {
            background-color: #0056b3;
            border-color: #0056b3;
            color: #fff;
        }
        .btn-link {
            color: #17a2b8;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .btn-link:hover {
            color: #138496;
            text-decoration: underline;
        }
        .btn-link.text-danger {
            color: #dc3545;
        }
        .btn-link.text-danger:hover {
            color: #c82333;
        }
        .pagination-buttons a, .custom-btn {
            margin-right: 5px;
        }
        .table-responsive {
            margin-top: 20px;
            overflow-x: auto;
        }
        table {
            margin-top: 20px;
            border-collapse: collapse;
            width: 100%;
            background-color: #ffffff;
        }
        thead {
            background-color: #6c757d;
            color: #ffffff;
        }
        th, td {
            text-align: center;
            padding: 12px;
            border: 1px solid #ddd;
            transition: background-color 0.3s ease;
        }
        th {
            font-weight: bold;
        }
        td a {
            color: #007bff;
            text-decoration: none;
        }
        td a:hover {
            text-decoration: underline;
        }
        tbody tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        tbody tr:hover {
            background-color: #e6f7ff;
        }
    </style>
</head>
<body class="container">
<br/>
<div class="d-flex justify-content-between align-items-center">
    <h1>文章类型列表</h1>
    <a href="/" th:href="@{/}" class="btn btn-info custom-btn">返回</a>
</div>
<br/><br/>
<div class="mb-4">
    <form action="#" th:action="@{/articletype/pageByName}" method="get" class="d-flex flex-column flex-sm-row align-items-center">
        <input type="hidden" name="pageIndex" value="0"/>
        <div class="mb-2 mb-sm-0">
            <label for="typeInput" class="sr-only">文章类型名称</label>
            <input type="text" name="type" id="typeInput" class="form-control form-control-sm" placeholder="文章类型名称"/>
        </div>
        <button type="submit" class="btn btn-info btn-sm custom-btn">查询</button>
    </form>
</div>
<div class="d-flex justify-content-between align-items-center mb-4">
    <div>
        <a href="/toAdd" th:href="@{/articletype/toAdd}" class="btn btn-primary btn-sm custom-btn">新增</a>
    </div>
    <div class="d-flex">
        <a href="#" th:href="@{/articletype/page?pageIndex=0}" class="btn btn-secondary btn-sm custom-btn mr-2">首页</a>
        <a href="#" th:href="@{/articletype/page(pageIndex=${pre})}" class="btn-secondary btn-sm custom-btn mr-2">上页</a>
        <a href="#" th:href="@{/articletype/page(pageIndex=${next})}" class="btn-secondary btn-sm custom-btn mr-2">下页</a>
        <a href="#" th:href="@{/articletype/page(pageIndex=${page.getTotalPages()-1})}" class="btn-secondary btn-sm custom-btn">末页</a>
    </div>
</div>
<div class="table-responsive">
    <table class="table table-hover table-bordered">
        <thead class="thead-dark">
        <tr>
            <th scope="col">#</th>
            <th scope="col">文章类型</th>
            <th scope="col">创建时间</th>
            <th scope="col">修改时间</th>
            <th scope="col">编辑</th>
            <th scope="col">删除</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="articletype, articletypeStat : ${page.getContent()}">
            <th scope="row" th:text="${page.getSize() * page.getNumber() + articletypeStat.index + 1}"></th>
            <td th:text="${articletype.type}"></td>
            <td th:text="${#dates.format(articletype.createTime, 'yyyy-MM-dd HH:mm')}"></td>
            <td th:text="${#dates.format(articletype.updateTime, 'yyyy-MM-dd HH:mm')}"></td>
            <td><a th:href="@{/articletype/toEdit(id=${articletype.id})}" class="btn btn-link">编辑</a></td>
            <td><a th:href="@{/articletype/delete(id=${articletype.id})}" class="btn btn-link text-danger">删除</a></td>
        </tr>
        </tbody>
    </table>
</div>
<div class="d-flex justify-content-end mt-4 pagination-buttons">
    <a href="#" th:href="@{/articletype/page?pageIndex=0}" class="btn btn-secondary btn-sm custom-btn mr-2">首页</a>
    <a href="#" th:href="@{/articletype/page(pageIndex=${page.previousOrFirstPageable().getPageNumber()})}" class="btn-secondary btn-sm custom-btn mr-2">上页</a>
    <a href="#" th:href="@{/articletype/page(pageIndex=${page.nextOrLastPageable().getPageNumber()})}" class="btn-secondary btn-sm custom-btn mr-2">下页</a>
    <a href="#" th:href="@{/articletype/page(pageIndex=${page.getTotalPages() - 1})}" class="btn-secondary btn-sm custom-btn">末页</a>
</div>

</body>
</html>

